from django import template
from django.template.defaulttags import url as default_url
from mysites.comments.models import Comments
import logging

register = template.Library()

@register.inclusion_tag('sidebar/comments.html')
def comments_list(node):
    comments = Comments.objects.filter(node=node)
    return {"comments":comments}
